package com.tx.model;

/**
 * @author dengguoxing
 * @date 2019/11/1
 * description
 **/
public class WsMessage {

    /**
     * 消息事件 订阅sub 订阅回复subed 取消订阅unsub 取消订阅回复unsubed 推送push 系统system
     */
    private String event;

    /**
     * 订阅主题
     */
    private String topic;

    /**
     * 当前时间戳
     */
    private long ts;

    /**
     * 消息内容
     */
    private Object data;

    public String getEvent() {
        return event;
    }

    public void setEvent(String event) {
        this.event = event;
    }

    public String getTopic() {
        return topic;
    }

    public void setTopic(String topic) {
        this.topic = topic;
    }

    public long getTs() {
        return ts;
    }

    public void setTs(long ts) {
        this.ts = ts;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
